package com.fbt.transfer.app.driver.util;

import android.content.Context;

/**
 * @author tuocoo
 * @date 2025-03-26
 * @since 1.0.0
 */
public class AppContextProvider {

  private static Context appContext;

  public static void initialize(Context context) {
    appContext = context.getApplicationContext();
  }

  public static Context getAppContext() {
    if (appContext == null) {
      throw new IllegalStateException("AppContextProvider not initialized");
    }
    return appContext;
  }
}
